package com.zllkj.mm.api.remote;

import com.fasterxml.jackson.databind.ser.AnyGetterWriter;
import com.zllkj.mm.api.network.BaseResponse;
import com.zllkj.mm.model.entity.AddressBeanVo;
import com.zllkj.mm.model.entity.AddressListOutSideBean;
import com.zllkj.mm.model.entity.FreeTimeOrderVo;
import com.zllkj.mm.model.entity.InvitationListVo;
import com.zllkj.mm.model.entity.WaitToConfirmOrderVo;
import com.zllkj.mm.model.entity.WriteOffFreeTimeHistoryListVo;

import java.util.Map;

import retrofit2.http.Body;
import retrofit2.http.POST;
import rx.Observable;

public interface FreeTimeApi {
    @POST("freeTime/order/cancelByInvitationUser")
    Observable<BaseResponse<String>> cancelByInvitationUser(@Body Map<String, Object> map);

    @POST("freeTime/order/getCheckCode")
    Observable<BaseResponse<String>> getCheckCode(@Body Map<String, Object> map);

    @POST("freeTime/order/list")
    Observable<BaseResponse<FreeTimeOrderVo>> getFreeTimeList(@Body Map<String, Object> map);


    @POST("freeTime/order/writeOffList")
    Observable<BaseResponse<WriteOffFreeTimeHistoryListVo>> getWriteOffListHistory(@Body Map<String, Object> map);


    @POST("invitation/toConfirmList")
    Observable<BaseResponse<WaitToConfirmOrderVo>> getToConfirmList(@Body Map<String, Object> map);


    @POST("invitation/reject")
    Observable<BaseResponse<String>> rejectInvitation(@Body Map<String, Object> map);


    @POST("invitation/confirm")
    Observable<BaseResponse<String>> confirmInvitation(@Body Map<String, Object> map);


   @POST("invitation/invitationList")
    Observable<BaseResponse<InvitationListVo>> getInvitationList(@Body Map<String, Object> map);





}
